#include <p18f4550.h>
#include <plib/delays.h>

int main(void){

    TRISB=0;
    TRISD=0;
    unsigned char men[6][8]={{0X0,0X3C,0X42,0X42,0X42,0X42,0X7E,0X0},{0X0,0X10,0X38,0X54,0X10,0X10,0X10,0x0},
    {0X0,0X76,0X4A,0X4A,0X52,0X42,0X3C,0X0},{0X0,0X10,0X38,0X54,0X10,0X10,0X10,0x0},{0X0,0X7E,0X4A,0X4A,0X4A,0X4A,0X7E,0X0},{0X0,0X10,0X38,0X54,0X10,0X10,0X10,0x0}};
    unsigned char  col=0, letter=0;
    while(1){
        {for(letter=0;letter<6;letter++)
        {

            for(col=0;col<7;col++){
               PORTD=men[letter][col];
                 PORTBbits.RB0=~(1<<col);
                Delay1KTCYx(50);
            }
            Delay1KTCYx(200);
            }}





  }



}